package User;

import Book.BookList;
import Operation.IOperation;

public abstract class User {
    private String name;
    public IOperation[] iOperations;
    public void doOperation(int choice, BookList bookList){
        iOperations[choice].work(bookList);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public User(String name) {
        this.name = name;
    }
    public abstract int menu();
}
